package day16_Runnable.demo08;

public class MyRunable extends Thread {
    @Override
    public void run() {

        for (int i = 1; i <=100 ; i++) {
            if(i==20){
                try {
                    join();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            System.out.println(Thread.currentThread().getName()+"----"+i);
        }
    }
}
